//
//  UserAccount.h
//  THCustomer
//
//  Created by lichentao on 13-8-12.
//  Copyright (c) 2013年 efuture. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSONModel.h"

@interface UserAccount : NSObject
@property (nonatomic, strong) NSString *user_icon;
@property (nonatomic, strong) NSString *user_id;
@property (nonatomic, strong) NSString *mobile;
@property (nonatomic, strong) NSString *email;
@property (nonatomic, strong) NSString *user_name;
@property (nonatomic, strong) NSString *true_name;
@property (nonatomic, strong) NSString *gender;
@property (nonatomic, strong) NSString *intro;
@property (nonatomic, strong) NSString *session_id;
@property (nonatomic, strong) NSString *region_id;
@property (nonatomic, strong) NSString *location_CityName;
@property (nonatomic, assign) BOOL model;     // 0:日间模式 1:夜间模式

+ (UserAccount *)instance;
- (void)restoreAccount:(NSDictionary *)accountInfo;
- (void)updateAccount:(NSDictionary *)accountInfo;
- (void)saveAccount;
- (void)logout;
- (BOOL)isLogin;

@end


@interface UserAccountModel : JSONModel

@end


@protocol UpLoadImgModel <NSObject>
@end

@interface UpLoadImgModel : JSONModel
@property (nonatomic, copy) NSString<Optional> *error_code;
@property (nonatomic, copy) NSString<Optional> *error_msg;
@property (nonatomic, copy) NSString<Optional> *log_id;

@end


